
// this is where the second phase UI would fit in
public class PLPlayerUI extends PLPlayer {
	// this response would be generated through UI interaction

	public PLPlayerUI() {
		super("UI");
		Init();
	}

	public boolean Init() {
		return true;
	}
	
	public float GenResponse(PLShape query, PLOutShape  outResponse) {
		SettingsWindow.Obj().setStatus("Draw shape");
		PLDebug.Warn("New Shape required");

		// makes  a blocking call to the canvas to get the UI shape
		PLCanvasShape canvasShape = new PLCanvasShape(GetColor());

		PLShape shape = canvasShape.GetShape();
		SettingsWindow.Obj().setStatus("Received Shape");
		PLDebug.Warn("Done");
		if (shape == null) return 0;

		outResponse.SetShape(shape);
		outResponse.SetConfidence(1);
		
		return 1; //always have full confidence	
	}	

}
